import request from '@/utils/request'

export default {


    //生成购买订单
    createOrders(courseId) {

        return request({

            url: `/eduorder/order/createOrder?courseId=${courseId}`,
            method: "get"

        })
    },

    //根据订单id查询详情
    getOrderInfo(orderId) {

        return request({

            url: `/eduorder/order/getOrderInfo?id=${orderId}`,
            method: "get"
        })
    },

    //生成二维码的方法
    createQRCode(courseId) {
        return request({

            url: `/eduorder/order/createQRCode?id=${courseId}`,
            mehtod: "get"
        })
    },

    // 根据订单号查询支付状态
    queryPayStatus(orderNo){

        return request({
            url:`/eduorder/order/queryPayStatus?orderNo=${orderNo}`,
            method:"get"
        })

    }




}